<% content_for :mid do %>
<div id="midnav_left"></div>
<div id="midnav_back">
<div id="notice">
<%= list_notice(flash[:notice]) %>
</div>
</div>
<div id="midnav_right"></div>
<% end %>
<%= form_tag :controller=> 'login',:action => 'login'%>
<table border="0" cellpadding="0" cellspacing="0">
<ul>
	<tr>
		<td width="110" class="maintext"><strong>
		<li>用户名:</li></strong></td>
		<td width="200" align="right"><%= text_field 'user', 'name',:size=>"20" , 
                                        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
                                        :onMouseOut=>"this.style.backgroundColor = '';"%></td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td class="maintext"><strong>
		<li>密码:</li>
		</strong></td>
		<td align="right"><%= password_field 'user', 'password',:size=>"20" , 
                                        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
                                        :onMouseOut=>"this.style.backgroundColor = '';"%></td>
	</tr>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td class="maintext"><strong>
		<li>反垃圾算术题:</li>
		</strong></td>
		<td align="right" valign="top"><img
			src='<%= url_for(:controller=>"index",:action=>"post_validation")%>' />
			<%= text_field 'code','code',:size=>"8" , 
                                        :onMouseOver=>"this.style.backgroundColor = '#E5F0FF';",
                                        :onMouseOut=>"this.style.backgroundColor = '';"
                                        %>
		</td>
	</tr>
	</ul>
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td></td>
		<td  align="right"><%= submit_tag " 登 陆 ",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%></td>
	</tr>
</table>
<%= end_form_tag %>
<div id="mylink" <%='style="DISPLAY: none"' if @on.to_i==0%>><A
	onclick="Element.hide('mylink');Effect.BlindDown('mydiv'); return false;"
	href="#">+我还不是薪情在线的用户,现在就注册&gt;&gt;</A></div>
<div id="mydiv" class="medgray" <%='style="DISPLAY: none"' if @on.to_i==1%>>
<%= form_remote_tag :url=>{:controller=> 'login',:action => 'create_user'}%>
<%= render :partial => 'user_form' %>
<%= submit_tag "下一步" ,:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%>
&nbsp;(&nbsp;<A
	onclick="Element.hide('mydiv'); Element.show('mylink');return false;"
	href="#">取消</A>&nbsp;) <%= end_form_tag %></div>